highlight RedundantSpaces ctermbg=red guibg=red
highlight PMenu ctermfg=0 ctermbg=242 guifg=black guibg=darkgrey
highlight PMenuSel ctermfg=242 ctermbg=8 guifg=darkgrey guibg=black
highlight Search ctermbg=yellow ctermfg=black
highlight IncSearch ctermbg=black ctermfg=yellow

match RedundantSpaces /\s\+$\| \+\ze\t\|\t/

set nocompatible
set cursorline
set ignorecase
set autoindent
set smartcase
set incsearch
set expandtab
set showmatch
set showmode
set autoread
set hlsearch
set number
set ruler

set completeopt-=preview
set foldmethod=marker
set fileformats=unix
set background=dark
set encoding=utf-8
set conceallevel=0
set guioptions-=b
set softtabstop=4
set shiftwidth=4
set laststatus=2
set history=1000
set backspace=2
set tabstop=4
"set mouse=a
set bg=dark

syntax on

filetype on
filetype indent on
filetype plugin on
filetype plugin indent on

if has("autocmd")
      au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
